Label switching type of packet forwarding apparatus

ABSTRACT

A label switching type packet forwarding apparatus having a routing information table in which a forwarding type of a reception packet, output port identification information, and output routing information of a specific layer in the OSI reference model determined by the forwarding type are defined in correspondence with routing information which is found upon reception of a packet, for converting a header of a reception packet in accordance with the packet forwarding type and the output routing information obtained by a table search.

BACKGROUND OF THE INVENTION

(1) Field of the Invention

The present invention relates to a node applied to an IP (InternetProtocol) network and, more particularly, to a label switching typepacket forwarding apparatus.

(2) Description of the Related Art

On an IP network typified by the Internet, data is forwarded inaccordance with the IP protocol. In recent years, attention is paid to alabel switching type packet forwarding for labeling an IP packet andforwarding a reception packet in accordance with the label. A typicalexample of label switching is MPLS (Multi Protocol Label Switching)which is being standardized by the IETF (Internet Engineering TaskForce).

In order to make the invention understood easily, a conventionaltechnique related to the invention will be described hereinbelow withreference to drawings.

FIG. 20 shows an IP network comprising a plurality of routers R51 to R55for forwarding IP packets.

Hosts IP51 to IP55 such as terminals or servers as sources ordestinations of IP packets are connected to the IP network via therouters. In the IP network shown in the diagram, the router R53 forconnecting the routers R51, R52, R54 and R55 has, for example, a routinginformation table 100 shown in FIG. 21 to determine the forwarding routeof a reception packet.

The routing information table 100 comprises a plurality of entriesshowing the relation among a destination IP address IN51 as inputinformation IN5, a next hop router address IM51 as intermediateinformation IM5, and output port identifier (output port number) OUT51and output layer 2 (L2) information OUT52 as output information OUT5.

In the IP network of FIG. 20, for example, when a route of an IP packettransmitted from the host IP51 to the host IP53 is RT51 and a route ofan IP packet transmitted from the host IP52 to the host IP54 is RT52,entries EN51 and EN52 having the contents shown in FIG. 21 are set inthe routing information table 100 of the router R53 in correspondencewith the routes.

For example, when attention is paid to the route RT51, an IP packetinputted from the host IP51 via the router R51 to the router R53 has anIP header H1 of a format shown in FIG. 22, in which the address of thehost IP53 is set as an destination IP address H13. When the IP packet isreceived from the router R51, the router R53 extracts the destination IPaddress from the IP header H1 and searches the table 100 by using thedestination IP address as input information. By the search, an outputport number #53 to which the IP packet is to be forwarded and output L2information 5 i to be added to an output packet are obtained.

When the routing information table 100 is divided into a first table inwhich the relation between the input information IN5 and theintermediate information IM5 is defined and a second table in which therelation between the intermediate information IM5 and the outputinformation OUT5 is defined, by referring to the second table on thebasis of the next hop router address R54 obtained from the first table,the output port #53 and the output L2 information 5 i are obtained. Whenthe input information IN5 and the output information OUT5 are directlyassociated with each other on the same table, the intermediateinformation IM5 can be omitted.

The output L2 information added to the output packet denotes routinginformation of the layer 2 (data link layer) of the OSI reference modelapplied to output lines of the router R53. For example, when the outputline is of Ethernet, an MAC destination address H21 in an Ethernetheader H2 shown in FIG. 23 corresponds to the output L2 information.When the output line is an ATM line, VPI/VCI H31 in an ATM header H3shown in FIG. 24 corresponds to the output L2 information. When theoutput line is of POS (PPP over SONET) , as shown in FIG. 31, noinformation of the layer 2 exists in the POS header. Consequently, in atable entry corresponding to the POS line in the routing table 100, theoutput L2 information OUT52 is blank.

The router 53 forwards the reception IP packet to the next hop routerR54 in a format that the output L2 information which is necessary for alower layer of the OSI standard model applied to each of the outputlines is added. Also on the packet route RT52 having the information ofthe destination IP address of “IP54”, in a manner similar to the routeRT51, an IP packet is forwarded to the next hop router R55 in accordancewith the output information of the entry EN52 corresponding to thedestination IP address set in the routing information table 100.

FIG. 25 shows an example of an IP network including label switchingnodes E61 to E63, C61 and C62 for forwarding packets by the MPLS.

In the diagram, an ellipse domain D6 in the center of the networkdenotes an MPLS domain for forwarding packets by the MPLS. In thefollowing description, the nodes E61, E62 and E63 disposed at theincoming and outgoing ports of the MPLS domain D6 will be called edgenodes and the nodes C61 and C62 disposed on the inside of the MPLSdomain will be called core nodes. The edge nodes E61, E62 and E63 areconnected to routers R61, R62, R63 and R64 for IP forwarding thepackets, respectively, on the outside of the MPLS domain D6.

On the inside of the MPLS domain D6, as shown in FIG. 26, the packetforwarding is performed in an MPLS packet 210 format in which a Shimheader H4 is added to an IP packet 200. Each of the edge nodes has atable shown in FIGS. 27 and 28 for determining the forwarding route of areception packet. FIG. 27 shows an ingress routing information table 110which is referred to when the forwarding route of a packet inputted fromthe outside of the MPLS domain D6 into the domain is determined. FIG. 28shows an egress routing information table 120 which is referred to whenthe forwarding route of a packet outgoing from the inside of the MPLSdomain D6 to the outside is determined.

The ingress routing information table 110 comprises a plurality ofentries showing the relation between a destination IP address IN61 asinput information IN6 i, and an output port OUT61 and an output labelOUT62 as output information OUT6 i. The output label OUT62 correspondsto the value of a label H41 included in the Shim header H4 of the MPLSshown in FIG. 26.

The egress routing information table 120 comprises a plurality ofentries showing the relation among a destination IP address IN62 asinput information IN6 e, a next hop router address IM61 as intermediateinformation IM6 e, and an output port OUT63 and output L2 informationOUT64 as output information OUT6 e. The egress routing information table120 basically has a structure similar to that of the routing informationtable 100 shown in FIG. 21 which is referred to in the IP forwarding.

In the IP network shown in FIG. 25, when it is assumed that a route ofan IP packet transmitted from the host IP61 to the host IP63 is RT61, aroute of an IP packet transmitted from the host IP62 to the host IP64 isRT62, a route of an IP packet transmitted from the host IP63 to the hostIP61 opposite to the route RT61 is RT63, and a route of an IP packettransmitted from the host IP64 to the host IP62 opposite to the routeRT62 is RT64, in the ingress and egress routing information tables 110and 120 of the edge node E61, entries EN61, EN62, EN63 and EN64 havingthe contents shown in FIGS. 27 and 28 are set in correspondence with theroutes.

When attention is paid to the route RT61, the IP packet transmitted bythe host IP61 to the host IP63 is inputted to the edge node E61 via therouter R61. The edge node E61 searches the ingress routing informationtable 120 by using the destination IP address “1IP63” of the receptionIP packet as input information and obtains output port number “#63” andan output label “L61”. The reception IP packet is converted to an MPLSpacket to which the Shim header H4 including the output label “L61” isadded and forwarded to the output line having the output port number“#63”. In the following description, the packet forwarding from the IPnetwork to the inside of the MPLS domain will be called “MPLSedge-ingress forwarding”. Similarly, the reception IP packet of theroute RT62 is converted to an MPLS packet including an output label L63defined by the entry EN62 in the ingress routing information table 110and the resultant is MPLS edge-ingress forwarded to the output lineindicated by the output port number #64.

On the other hand, packets (MPLS packets) received via the routes RT63and RT64 are forwarded to the outside of the MPLS domain D6 by using theegress routing information table 120 shown in FIG. 28. The packetforwarding from the inside the MPLS domain to the outside will be called“MPLS edge-egress forwarding”. Since the routing information table 120has substantially the same structure as that of the routing informationtable 100 of FIG. 21 used for the IP forwarding, the detaileddescription is omitted here.

A packet forwarding performed by a core node in the MPLS domain(hereinbelow, called “MPLS core forwarding”) will be described.

FIG. 29 shows a network in which an MPLS domain D7 comprises edge nodesE71 to E74 and a core node C71 and the core node C71 transmits andreceives packets on the POS (PPP over SONET) line.

In the MPLS core forwarding on the POS line, as shown in FIG. 31, a PPPheader H5 is added to the MPLS packet 210 and the packet forwarding isperformed in the format of a PPP packet 220. In this case, the core nodeC71 has a routing information table 130 shown in FIG. 30 for determiningthe forwarding route of a reception packet. The routing informationtable 130 comprises a plurality of entries each including, as inputinformation IN7, an input port number IN71 and an input label IN72 and,as output information OUT7, an output port number OUT71 and an outputlabel OUT72.

In the network of FIG. 29, for example, when it is assumed that theroute of an IP packet transmitted from the host IP71 to the host IP73 isRT71 and a route of an IP packet transmitted from the host IP72 to thehost IP74 is RT72, the routing information table 130 of the MPLS-POScore node C71 includes, as shown in FIG. 30, entries EN71 and EN72having contents corresponding to the routes RT71 and RT72, respectively.

When attention is paid to the route RT71, an IP packet transmitted fromthe host IP71 to the host IP73 is inputted to the edge node E71 via therouter R71 and is converted to an MPLS packet having the label value ofL71. The MPLS packet is forwarded to the core node C71. The core nodeC71 which receives the MPLS packet from an input port of the port number“#71” uses the input port number “#71” and the value “L71” of the label(input label) extracted from the Shim header of the reception packet asinput information and searches the routing information table 130. Inthis case, the entry EN71 is hit and the output port number “#73” andthe value “L73” of the output label are obtained as output information.Consequently, the label value of the reception packet is rewritten from“L71” to “L73” and the resultant packet is forwarded to the output lineof the output port number “#73”.

The packet on the route RT72 transmitted from the host IP72 to the hostIP74 is processed in a manner similar to the packet on the RT71. Theprocessed packet is subjected to the MPLS core forwarding in accordancewith the output information OUT7 in the table entry EN72.

In the MPLS-POS core node as described above, different from the IPforwarding and the MPLS edge forwarding, the routing information tableis searched on the basis of the input port number and the label value ofthe Shim header irrespective of the destination IP address.

FIG. 32 shows a network in which an MPLS domain D8 includes edge nodesE81 to E84 and a core node C81, and a packet forwarding (MPLS-ATM coreforwarding) in the MPLS domain D8 is performed in the ATM.

In the ATM, as shown in FIG. 34, the IP packet 200 or the MPLS packet210 obtained by adding the Shim header H4 and a trailer to the IP packetis divided into a plurality of data blocks each having fixed length (48bytes). Each of the data blocks is converted to an ATM cell 230 having acell header H3 of 5 bytes shown in FIG. 24.

The core node (MPLS-ATM core node) C81 for forwarding packets in the ATMhas a routing information table 140 shown in FIG. 33 for determining theforwarding route of a reception packet. The routing information table140 comprises a plurality of entries each including, as inputinformation IN8, input port number IN81 and input VPI/VCI IN82 and, asoutput information OUT8, output port number OUT81 and output VPI/VCIOUT82.

The reason why input/output VPI/VCI is used in place of the input/outputlabel is that, in the MPLS core forwarding on the ATM line, a packet setin an ATM payload is not always limited to the MPLS packet 210 includingthe Shim header H4. That is, there is a case such that the conversionfrom the IP packet 200 to the MPLS packet 210 is omitted, the IP packet200 having no label H4 is converted to ATM cells, and the ATM cells areMPLS core forwarded.

In the network of FIG. 32, when it is assumed that a route of an IPpacket transmitted from a host IP81 to a host IP83 is RT81 and a routeof an IP packet transmitted from a host IP82 to a host IP84 is RT82,entries EN81 and EN82 having the contents as shown in FIG. 33 are set inthe routing information table 140 in the MPLS-ATM core node C81 incorrespondence with the routes.

When attention is paid to the route RT81, an IP packet transmitted fromthe host IP81 to the host IP83 is supplied to the edge node E81 via therouter R81 and converted to ATM cells each having the VPI/VCI value“v81”. The ATM cells are inputted to the input port of the port number#81 of the core node C81.

By searching the table 140 by using the value of VPI/VCI of the receivedATM cell as input information, the edge node E81 obtains the output portnumber #83 and the output VPI/VCI value “v83” defined as outputinformation in the entry EN81. In the reception ATM cell, the VPI/VCIvalue is rewritten in accordance with the search result and theresultant is forwarded to the output line having the port number of“#83”. Similarly, the transmission packet on the route RT82 is alsoconverted into ATM cells which are sent to the MPLS domain D8. Based onthe output information defined in the table entry EN82, the ATM cellsare forwarded to the output line of the port number “#84”.

As described above, different from the node for performing the MPLS coreforwarding between the POS lines, the node for performing the MPLS coreforwarding between the ATM lines operates like an ATM switch forswitching packets on the basis of only the input port number and theVPI/VCI.

When the backbone network of the IP network is replaced by the labelswitching network, dispersion of a traffic load, increase in efficiencyof forwarding of data in the network by designating a route, andconstruction of a virtual private network VPN are facilitated. Asdescribed above, however, since data is forwarded according to the IPprotocol in the IP network and data is forwarded according to the MPLSprotocol in the MPLS network, there is a large difference in the formatof a forwarding packet and a construction of a routing information tablebetween the two networks. Consequently, in the case of constructing anIP network partially having an MPLS domain, an IP router is necessaryfor the IP forwarding and the MPLS node is necessary for the MPLSforwarding.

Although the MPLS domain includes the edge node and the core node, thepacket forwarding format of the edge node and that of the core node aredifferent from each other. A dedicated node is therefore necessaryaccording to each use. Also in the case of performing the MPLS coreforwarding, not only the layer 2 protocol process but also, for example,the handling of TTL (Time to Live) to be added to the packet header inthe case where the communication line is the POS line are different fromthose in the case where the communication line is the ATM line.Consequently, a number of kinds of MPLS nodes are required according tothe structures of networks. In the construction of the label switchingnetwork, there are problems such that the costs of nodes are high andthe network control becomes complicated as the number of kinds of nodesincreases.

In the case of shifting a part of the IP network to the MPLS, thefunctions of conventional edge nodes are divided into, as explained withreference to FIG. 25, the function of forwarding a packet from the IPnetwork to the inside of the MPLS domain and the function of forwardinga packet from the inside of the MPLS domain to the IP network. Thefunction of forwarding a packet between IP networks (IP forwarding) isnot provided. It causes a problem such that a flexible network in whichthe scale of the MPLS domain is gradually expanded while performing theIP forwarding by the edge nodes of the MPLS cannot be constructed and ahuge amount of funds is necessary for modernization of the network.

When the MPLS is once constructed by using the lines of a certainprotocol (such as ATM lines) as a base irrespective of the scale of theMPLS network, it becomes difficult to shift the lines to low-cost linesof another new protocol (such as POS lines) of higher forwarding speed.

SUMMARY OF THE INVENTION

It is an object of the invention to provide a label switching typepacket forwarding apparatus which can be adapted to a plurality of kindsof communication protocols.

Another object of the invention is to provide a label switching typepacket forwarding apparatus which has a plurality of kinds ofcommunication lines of different communication protocols and can forwardpackets among the communication lines.

Further another object of the invention is to provide a label switchingtype packet forwarding apparatus which can deal with a change incommunication protocol applied to input/output lines.

In order to achieve the objects, a label switching type packetforwarding apparatus according to the invention is characterized byusing a routing information table in which a forwarding type of areception packet, output port identification information, and outputrouting information of a specific layer in the OSI reference modeldetermined by the forwarding type are defined in correspondence withrouting information which is peculiar to a reception packet and is foundupon receipt of the packet.

A label switching type packet forwarding apparatus according to theinvention retrieves a table entry corresponding to the routinginformation of the reception packet from the routing information table,performs a header converting process on the reception packet inaccordance with the packet forwarding type and the output routinginformation of the specific layer indicated by the retrieved tableentry, and outputs the reception packet to an output port indicated bythe output port identification information in the specific table entry.

More specifically, the routing information table comprises, for example,a table entry corresponding to the destination IP address of a receptionpacket. The packet forwarding types include, for example, packetforwarding between IP networks, packet forwarding from an IP network toan MPLS network, and packet forwarding from an MPLS network to an IPnetwork. With the construction, a packet forwarding apparatus havingboth the edge node function and the function of forwarding a packetbetween IP networks can be realized. By including packet forwardingbetween MPLS networks in the packet forwarding types, a packetforwarding apparatus having both the edge node function and a core nodefunction can be realized.

In a preferred embodiment of the invention, entries of the routinginformation table are prepared in correspondence with a combination ofrouting information of a plurality of layers in the OSI reference model,such as a combination of first information indicative of an input portof a reception packet, second information indicative of either an MPLS(Multi Protocol Label Switching) label or the routing information of thelayer 2 in the OSI reference model for the reception packet, and thirdinformation indicative of a destination IP address of the receptionpacket. In this case, the routing information table is searched by, forexample, a search at the first stage using at least the first and secondinformation as search conditions and a search at the second stage usingthe third information as a search condition. The search at the secondstage is performed when there is no table entry matched with the searchconditions at the first stage.

The other objects and features of the invention will become apparentfrom the following description of embodiments with reference to theaccompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a first embodiment of a network to which a packetforwarding apparatus of the invention is applied.

FIG. 2 shows an example of a routing information table 150 of an edgenode E11 in FIG. 1.

FIG. 3 is a block diagram showing an embodiment of a packet forwardingapparatus 10 of the invention.

FIG. 4 is an example of a packet format used in the packet forwardingapparatus 10.

FIG. 5 shows an example of a format of an internal header H6.

FIG. 6 shows a detailed structure of an input line interface board 13illustrated in FIG. 3.

FIG. 7 is a flowchart showing the function of a layer-2 processing unit32 illustrated in FIG. 6.

FIG. 8 is a flowchart showing the function of a multi-layer processingunit 21 illustrated in FIG. 6.

FIG. 9 is a flowchart showing the function of a routing informationretrieval unit 23 illustrated in FIG. 6.

FIG. 10 shows a detailed structure of an output line interface board 14illustrated in FIG. 3.

FIG. 11 is a flowchart showing the function of a multi-layer processingunit 42 illustrated in FIG. 10.

FIG. 12 is a flowchart showing the function of a layer-2 processing unit52 illustrated in FIG. 10.

FIG. 13 shows a second embodiment of a network to which the packetforwarding apparatus of the invention is applied.

FIG. 14 shows an example of a routing information table 160 of an edgenode E21 in FIG. 13.

FIG. 15 shows a third embodiment of a network to which the packetforwarding apparatus of the invention is applied.

FIG. 16 shows an example of a routing information table 170 of an edgenode E11 in FIG. 15.

FIG. 17 shows a fourth embodiment of a network to which the packetforwarding apparatus of the invention is applied.

FIG. 18 shows an example of a routing information table 180 of a corenode E43 in FIG. 17.

FIG. 19 is a flowchart showing the function of a multi-layer processingunit 42 in the core node E43.

FIG. 20 shows an example of a conventional IP network having a pluralityof routers.

FIG. 21 shows the construction of a routing information table 100 of arouter R54 illustrated in FIG. 20.

FIG. 22 shows a format of an IP packet header.

FIG. 23 shows a format of an Ethernet header.

FIG. 24 shows a format of an ATM cell header.

FIG. 25 shows an example a conventional IP network including a labelswitching type edge node E61 and a core node.

FIG. 26 shows a format of an MPLS packet forwarded within the MPLSdomain.

FIG. 27 shows an ingress routing information table of the edge node E61illustrated in FIG. 25.

FIG. 28 shows an egress routing information table of the edge node E61illustrated in FIG. 25.

FIG. 29 shows an example of a conventional IP network including a labelswitching type core node C71 connected to another node via a POS line.

FIG. 30 shows a routing information table 130 of a core node C71illustrated in FIG. 29.

FIG. 31 shows an example of an MPLS packet format on the POS line.

FIG. 32 shows an example of a conventional IP network including a labelswitching type core node C81 connected to another node via an ATM line.

FIG. 33 shows a routing information table 140 of a core node C81illustrated in FIG. 32.

FIG. 34 shows the relation among an IP packet 200, an MPLS packet 210and an ATM cell 230.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

FIG. 1 shows an example of a network to which a packet forwardingapparatus (MPLS node) of the invention is applied.

In FIG. 1, a region of an ellipse shape in the center is an MPLS domainD1 for forwarding data in accordance with the MPLS. The MPLS domain D1comprises: edge nodes E (E11, E12 and E13) as incoming/outgoing ports ofthe domain; and core nodes C (C11 and C12) for MPLS core forwarding datawithin the domain. The edge nodes E are connected to routers R (R11 toR14) of an IP network on the outside of the MPLS domain D1. In theembodiment, each of the edge nodes E has not only the IP forwardingfunction of forwarding a packet received from one of the routersconnected to the node to another router connected to the node and theMPLS edge forwarding function of forwarding a packet between the IPnetwork (router) and the MPLS domain D1 but also the MPLS coreforwarding function of forwarding a packet received from one node toanother node in the MPLS domain D1. By paying attention to the edge nodeE11, the features of the invention will be described hereinbelow.

In order to determine the routing of forwarding a reception packet, theedge node E11 has, for example, a routing information table 150 shown inFIG. 2. In the routing information table 150, a plurality of tableentries EN101, EN102, . . . each comprising of input information IN1 andoutput information OUT1 are registered. The input information IN1 as atable search key includes routing information of a plurality of layersof the OSI reference model. In the embodiment, the input information IN1includes input port number of a reception packet as routing informationIN11 of layer 1, label information of a reception MPLS packet as routinginformation (input L2 identifier) IN12 of layer 2, and a destination IPaddress of a reception packet as routing information IN13 of layer 2.The output information OUT1 as a table search result includes:forwarding type OUT11 of a packet; output port number OUT12 to which thereception packet is to be forwarded; and output layer 2 (L2) identifierOUT13 indicative of routing information to be added to an output packet.

The type of header information designated by the output L2 identifierOUT13 varies according to the forwarding type OUT11 of a packet. In theembodiment, the forwarding type OUT11 indicates one of IP forwarding,MPLS edge-ingress forwarding, MPLS edge-egress forwarding, and MPLS coreforwarding (POS-POS). The MPLS edge-ingress forwarding denotesforwarding of a reception packet from the IP network to another node inthe MPLS domain. The MPLS edge-egress forwarding denotes forwarding of areception packet from another node in the MPLS domain to the IP networkside.

One of the features of the embodiment is that the routing informationtable 150 is common to a table for IP forwarding of a reception packet(reception data) (entry EN103), a table for MPLS edge-ingress forwarding(entry EN101), a table for MPLS edge-egress forwarding (entry EN102),and a table for MPLS core forwarding (POS-POS) (entry EN104), and eachof the table entries defines the packet forwarding type and headerinformation (output L2 identifier) according to the packet forwardingtype.

For example, when the packet forwarding type OUT11 indicates the MPLSedge-ingress forwarding and the MPLS core forwarding, the output L2identifier OUT13 indicates the value of a label (output label) to beadded to the header of the output MPLS packet. The output label differsaccording to the protocol of a lower layer applied to the output line onthe MPLS domain side of the edge node E11. For example, when the outputline is of POS or Ethernet, the output label corresponds to a label H41in the Shim header format of the MPLS shown in FIG. 29. When the outputline is of ATM, the output label corresponds to VPI/VCI H31 in the ATMheader format shown in FIG. 27.

When the packet forwarding type OUT11 indicates the IP forwarding andthe MPLS edge-egress forwarding, the output L2 identifier OUT13 showsrouting information of layer 2 (output L2 information) to be added tothe output IP packet. The output L2 information differs according to theprotocol of a lower layer applied to the output line. For example, whenthe output line is of Ethernet, the output L2 information corresponds toan MAC destination address H21 in the Ethernet header format shown inFIG. 25. When the output line is of the ATM, the output L2 informationcorresponds to VPI/VCI H31 in the ATM header format shown in FIG. 26.When the output line is of the POS, since there is no identifiercorresponding to the POS, the column of the output L2 information OUT11is blank.

In the embodiment, the MPLS protocol is classified as layer 2 forconvenience since the IP protocol which is in the layer 3 of the OSIreference model is treated as a reference in the IP network field andthe MPLS lower than the IP protocol is considered to be in the layer 2.As the MPLS is positioned higher than Ethernet and PPP defined as in thelayer 2 in the OSI reference model, it is proper that the MPLS protocolis in the layer 2.5 which is between the layer 2 and the layer 3. In theembodiment, therefore, the input L2 identifier IN12 and the output L2identifier OUT13 in the routing information table 150 denote routinginformation of the layer 2 to be added to the forwarding packet on theIP network or routing information of the layer 2.5 to be added to theforwarding packet on the MPLS network.

In the network construction of FIG. 1, when it is defined that a routeof an IP packet transmitted from a host IP11 to a host IP13 is RT11, aroute of an IP packet transmitted from the IP13 to the host IP11opposite to the route RT11 is RT12, a route of an IP packet transmittedfrom the host IP11 to the host IP12 is RT13, and a route of an IP packettransmitted from a host IP14 to the host IP13 is RT14, each of tableentries EN101 to EN104 corresponding to the routes RT11 to RT14 has theinput and output information IN1 and OUT1 of the contents shown in FIG.2. An input item of which value is shown in parenthesis in the routinginformation table 150 denotes a “don't care value” such that whateverthe value given as a search key is, the value satisfies the searchconditions related to the item. An input item in which hyphen is set forconvenience denotes that no information corresponding to the item existsin the reception packet corresponding to the table entry and, (even ifcorresponding information exists), the search condition regarding theitem is not satisfied.

As will be described hereinlater, the routing information table 150 issearched at two stages on the basis of internal header information addedto a reception packet by each of line interfaces. In the search at thefirst stage, the table is searched by using all of the items (input portnumber IN11, input L2 identifier IN12 and destination IP address IN13)of the input information IN1 as search keys (search conditions). Whenthere is a hit entry, the reception packet is processed according to theoutput information OUT1 of the entry. When there is no hit entry in thesearch at the first stage, by using the destination IP address IN13 as aspecific item as a search key, the table search at the second stage isexecuted. The reception packet is processed according to the outputinformation OUT1 of the hit entry.

For example, when attention is focused on the route RT11, an IP packettransmitted from the host IP11 to the host IP13 is supplied via therouter R11 to the input port having the port number “#11” in the edgenode E11. In this case, in the table entry EN101 in which the input portnumber IN11 is “#11”, a hyphen is set as the value of the input L2identifier IN12. Consequently, the search at the first stage fails andtable search at the second stage by using the destination IP address“IP13” as a search key is executed. Since the entry EN101 is retrievedby the table search at the second stage, the reception packet issubjected to a protocol process for “MPLS edge-ingress forwarding”indicated by the forwarding type OUT11 and is forwarded as an MPLSpacket added with a label “LabelL11” indicated by the output L2identifier OUT13 to the output port of the port number “#13” indicatedby the output port number OUT12.

When attention is focused on the route RT12, an IP packet transmittedfrom the host IP13 to the host IP11 is forwarded to the edge node E12via the router R13. The IP packet is converted to an MPLS packet in theedge node 12 by a manner similar to that of the edge node E11. The MPLSpacket is supplied via the core node C11 from the input port having theport number “#13” to the edge node E11. At this time, the label of theinput MPLS packet is converted to “L12” by the label switching in thecore node C11. The edge node E11 executes the table search at the firststage by using the input port number “#13”, the input L2 identifier“L12” and the destination IP address “IP11” of the reception packet assearch keys. In this case, in the entry EN1012 in which the input portnumber IN11 is “#13”, a hyphen is set as the value of the input L2identifier IN12, the table search fails and the table search at thesecond stage by using the destination IP address “IP11” as inputinformation is executed. By the table search at the second stage, theentry EN102 is retrieved and the reception MPLS packet is transmitted tothe output port of the number “#11” indicated by the output port numberOUT11 in the entry EN102 by the MPLS edge-egress forwarding shown by theforwarding type OUT11. In this case, the reception MPLS packet isconverted to an IP packet having output L2 information “L2inf li” inaccordance with the output L2 identifier OUT13.

When attention is paid to the route RT13, an IP packet transmitted fromthe host IP11 to the host IP12 is inputted via the router R11 to theinput port of the port number “#11” of the edge node E11. In this case,in a manner similar to the reception packet of the route RT11, the tablesearch at the first stage fails and the entry EN103 is retrieved by thetable search at the second stage by using the destination IP addressIP12 as input information. The reception packet is, therefore,transmitted to the output port of the number “#12” indicated by theoutput port number OUT12 in the entry EN103 by the IP forwarding shownby the forwarding type OUT11. At this time, the reception packet isconverted to the IP packet which includes the output L2 information“L2inf 1 j” indicated by the output L2 identifier OUT13 in the layer 2header.

When attention is focused on the route RT14, an IP packet transmittedfrom the host IP14 to the host IP13 is inputted via the router R14 tothe edge node E13 and is converted to the MPLS packet by the edge nodeE13. After that, the MPLS packet is inputted to the input port of theport number “#14” in the edge node E11 via the core node C12. The labelof the MPLS packet is changed to “L14” by the label conversion of thecore node C12. In this case, the entry EN104 is retrieved by the tablesearch at the first stage, the received MTLS packet is forwarded to theoutput port of the port number “#12” indicated by the output port numberOUT12 in the entry EN104 by the MPLS core forwarding (POS-POS) indicatedby the forwarding type OUT11. At this time, the label of the receptionMPLS packet is converted to “LabelL13” indicated by the output L2identifier OUT13.

As obviously understood from the above description, in the presentinvention, by defining the output information including the forwardingtype OUT11 in each of the entries in the routing information table 150which is referred to on the basis of the routing information (input portidentifier and header information) of a reception packet, a plurality ofkinds of packet forwarding of different protocol processes can beperformed by a single MPLS node. In the embodiment shown in FIGS. 1 and2, the label information of the layer 2.5 to be added to the forwardingpacket in the MPLS network and routing information (layer 2 information)of the layer 2 to be added to the forwarding packet in the IP networkare defined in a lump as a “layer 2 identifier”. By setting the outputL2 identifier indicative of the label information or the layer 2information to be added to the output packet as output information ofeach of the entries in the routing information table 150, both the IPforwarding function and the MPLS forwarding function can be realized bya single MPLS node.

FIG. 3 shows an embodiment of a label switching type packet forwardingapparatus (hereinbelow, called an MPLS node) 10 according to theinvention typified by the above-described edge node E11.

The MPLS node 10 comprises a control unit 11, a switching unit 12, and aplurality of input line interface boards 13 (13-1 to 13-n) and outputline interface boards 14 (14-1 to 14-n) which are connected to theswitching unit 12.

Each of the input line interface boards 13 comprises an ingress routingunit 20 connected to the switching unit 12, and a plurality of inputline interface units 30 (30-1 to 30-m) connected to the ingress routingunit 20. A plurality of input lines each having peculiar input portnumber are connected to each of the input line interface units 30. Therouting information table 150 shown in FIG. 2 is a part of the ingressrouting unit 20. The table entries are updated by the control unit 11.

On the other hand, each of the output line interface boards 14 comprisesan egress routing unit 40 connected to the switching unit 12 and aplurality of output line interface units 50 (50-1 to 50-m) connected tothe egress routing unit 40. A plurality of output lines each having apeculiar output port number are connected to each of the output lineinterface units 50. An output line interface unit 50-j of an output lineinterface board 14-i corresponds to an input line interface unit 30-j ofan input line interface board 13-i. That is, the MPLS node 10 has aplurality of pairs of input and output lines.

Each of the input line interface units 30 performs protocol processes ofthe layer 1 and layer 2 on a packet (or ATM cells) received from aninput line and forwards the reception packet to the ingress routing unit20. At this time, an internal header H6 is added to the reception packetas shown in FIG. 4. FIG. 4 shows, as an example of a reception packet,an MPLS packet obtained by adding the Shim header H4 and the L2 headerH5 to an IP packet comprising of the IP payload D and the IP header H1.The format of the reception packet differs according to a communicationprotocol applied to each of the input lines. For example, a receptionpacket from the input line connected to the IP network does not includethe Shim header H4.

The internal header H6 has, for example as shown in FIG. 5, anidentifier H61 of an egress routing unit, input port number H62, aninput L2 identifier H63, a destination IP address H64, a forwarding typeH65, output port number H66, and an output L2 identifier H67. In theembodiment, the output line interface board 14 (14-1 to 14-n) isspecified by the identifier H61 of the egress routing unit, and anoutput line in each of the output line interface boards is specified bythe output port number H66. For example, the input port number H62 andthe input L2 identifier H63 in the construction information of theinternal header H6 are added by each of the input line interface units30 and the other information is added by the ingress routing unit 20.

The switching unit 12 forwards a packet supplied from each of the inputline interface boards 13 to the output line interface board 14 indicatedby the identifier H61 of the egress routing unit in the internal header.In each of the output line interface boards 14, by the egress routingunit 40, packets received from the switching unit 12 are routed to theoutput line interface units 50 indicated by the output port numbers H66each in the internal header. Each of the output line interface units 50removes the internal header H6 from the reception packet, executes aheader converting process of the layer 2 in accordance with theforwarding type H65 and the output L2 identifier H67, and then transmitsthe packet (or ATM cell) to the output line indicated by the output portnumber H66.

FIG. 6 shows the detailed construction of the input routing unit 20 andthe input line interface unit 30 in the input line interface board 13.

The input line interface unit 30 comprises layer-1 processing units 31(31-1 to 31-j) provided in correspondence with input lines and a layer-2processing unit 32 connected to the layer-1 processing units 31. It isalso possible to prepare the layer-2 processing unit 32 for each layer-1processing unit 31, multiplex outputs of the plurality of layer-2processing units 32 by a multiplexer and supply the resultant to theingress routing unit 20. The layer-1 processing unit 31 performs asignal receiving process at the physical layer level of thecommunication line such as light-electricity conversion to input packetsin the layer 2 to the layer-2 processing unit 32.

As shown in FIG. 7, the layer-2 processing unit 32 performs terminationprocessing for the layer 2 on a reception packet from each of thelayer-1 processing units 31 (step S01) , sets the input port number H62and the input L2 identifier H63 to the internal header H6 (S02) andforwards the reception packet to which the internal header is added tothe ingress routing unit 20 (S03). The value of the input port numberH62 to be set in the internal header is specified from the peculiarnumber of the layer-1 processing unit 31 which has received andprocessed the packet. The input L2 identifier H63 is specified by thecontents of the L2 header H5 extracted from the reception packet.

The ingress routing unit 20 comprises, as shown in FIG. 6, a multi-layerprocessing unit 21 connected to the layer-2 processing unit 32 in eachof the input line interface units 30 (30-1 to 30-m), a switching unitinterface 22, a routing information retrieval unit 23, and a routinginformation memory 24 in which, for example, the routing informationtable 150 shown in FIG. 2 is stored. The multi-layer processing unit 21and the routing information retrieval unit 23 may be formed on a singleLSI.

As shown in FIG. 8, the multi-layer processing unit 21 performstermination processing for layer-3 on a packet received from each of theinput line interface units 30 (step S11), sets the destination IPaddress H13 extracted from the IP header as a destination IP address H64in the internal header (S12) , forwards the input port number H62, inputL2 identifier H63, and destination IP address H64 as search keys of therouting information table to the routing information retrieval unit 13(S13) and waits for a response from the routing information retrievalunit (S14).

When search key information is received from the multi-layer processingunit 21, the routing information retrieval unit 13 searches the routinginformation table 150 by using all of given search key items (input portnumber H62, input L2 identifier H63 and destination IP address H64) assearch conditions in accordance with the flowchart shown in FIG. 9 (stepS101). The routing information retrieval unit 13 checks the searchresult (S102). When there is a table entry matching the searchconditions, the routing information retrieval unit 13 replies the outputinformation OUT1 (forwarding type, output port number and output L2identifier) of the table entry to the multi-layer processing unit 21(S103). In the embodiment, in the table entry hit by the searchconditions of the first stage, the forwarding type OUT11 indicates theMPLS core forwarding (POS-POS).

When the search at the first stage fails, the destination IP address H64is used as a search key and the routing table 150 is again searched(S104). When the search result is checked (S105) and there is a tableentry which matches the search conditions, the output information OUT1of the table entry (forwarding type, output port number and output L2identifier) is returned to the multi-layer processing unit 21 (S103). Inthe embodiment, in the table entry hit by the search of the secondstage, the forwarding type OUT11 indicates one of the MPLS edge-ingressforwarding, MPLS edge-egress forwarding, and IP forwarding. When thesearch of the second stage also fails, default values indicative ofunknown routing information are replied to the multi-layer processingunit 21 (S106).

In the flowchart, the retrieval of the first stage is performed by usingall of items defined as the input information IN1 in the routinginformation table as search conditions. In the embodiment, however,since the entry for MPLS core forwarding to be searched at the firststage has the destination IP address IN13 of “Don't Care Value”, thesearch at the first stage may use two items of the input port number andthe input L2 identifier as search conditions.

When the output information OUT1 is received from the routinginformation retrieval unit 23, as shown in FIG. 8, the multi-layerprocessing unit 21 sets the identifier H61 of the egress routing unit,forwarding type H65, output port number H66 and output L2 identifier H67into the internal header (S15) and forwards the reception packet to theswitching unit 12 via the switching unit interface 22 (S16) In thiscase, the identifier H61 of the egress routing unit corresponds to a fewhigher bits of the output port number OUT12 shown in the table entry andthe output port number H66 corresponds to the rest of the bits of theoutput port number OUT12. The switching unit 12 forwards the packetreceived from each of the input interface boards 13 to the outputinterface board 14 indicated by the identifier H61 of the egress routingunit in the internal header.

FIG. 10 shows detailed constructions of the egress routing unit 40 andthe output line interface unit 50 in the output line interface board 14.

The output line interface unit 50 comprises layer-1 processing units 51(51-1 to 51-j) provided in correspondence with output lines and alayer-2 processing unit 52 connected to the layer-1 processing units 51.The egress routing unit 40 has a switching unit interface 41 and amulti-layer processing unit 42 connected to the layer-2 processing unit52 in each of the output line interface units 50 (50-1 to 50-m) .Although the single layer-2 processing unit 52 is shared by theplurality of layer-1 processing units 51 in this case, it is alsopossible to provide a layer-2 processing unit 52 for each of the layer-1processing units 51 and connect the plurality of layer-2 processingunits 52 to the multi-layer processing unit 42 via a demultiplexer.

When a packet with the internal header is received via the switchingunit interface 41, as shown in FIG. 11, the multi-layer processing unit42 advances to one of the routines of the MPLS edge-ingress forwarding(S22), MPLS edge-egress forwarding (S23), MPLS core forwarding (S24) andIP forwarding (S25) in accordance with the forwarding type H65 includedin the internal header (S21). The multi-layer processing unit 42executes a TTL (Time To Live; it is similarly done by hop number)process (S26, S27, S28 or S29) and a header converting process (S30,S31, S32 or S33) in accordance with the forwarding type. In theembodiment, the multi-layer processing unit 42 performs the headerconverting process on the MPLS header and the IP header. As describedabove, when it is regarded that the MPLS is in the layer 2.5, themulti-layer processing unit 42 executes a protocol process regarding alayer higher than the layer-2 processing unit 52.

For example, in the case of the MPLS edge-ingress forwarding, aftersubtracting by 1 from the value of TTL H11 included in the IP header H1by the TTL process (S26), the Shim header H4 (refer to FIG. 26)including the resultant value as TTL H42 is generated. In the headerconverting process (S30), the value indicated by the output L2identifier H67 of the internal header H6 is set in the label H41 in theShim header H4 and the Shim header H4 is inserted before the IP headerin the reception packet (IP packet).

In the case of the MPLS edge-egress forwarding, after subtracting by 1from the value of TTL H42 included in the Shim header H4 of thereception packet by the TTL process (S27), the resultant value is set inthe TTL H11 in the IP header H1. In the header converting process (S31),the Shim header H4 is eliminated from the reception packet (MPLSpacket).

In the case of the MPLS core forwarding (POS-POS forwarding in theembodiment), after subtracting by 1 from the value of the TTL H42included in the Shim header H4 of a reception packet, the value of thelabel H41 included in the Shim header H4 of the reception packet isconverted to a value indicated by the output L2 identifier H67 in theinternal header H6.

In the case of the IP forwarding, after subtracting by 1 from the valueof the TTL H11 included in the IP header H1 by the TTL process (S29), apart of the IP header information such as the value of Header ChecksumH52 is updated by the header converting process S33.

After the TTL process and the header converting process according to thepacket forwarding type, the multi-layer processing unit 42 executes aQoS (Quality of Service) process (S34) and forwards the reception packetto the output line interface board 50 corresponding to the output portnumber H66 (S35).

When a packet is received from the egress routing unit 40, as shown inFIG. 12, the layer-2 processing unit 52 in each of the output lineinterface boards 50 eliminates the internal header H6 from the receptionpacket (step S31). After executing a layer-2 protocol process (S32) on apacket to be transmitted, the layer-2 processing unit 52 forwards thetransmission packet to the layer-1 processing unit 31 corresponding tothe output port number H66 in the internal header 6. In each of thelayer-1 processing units 31, the transmission packet received from thelayer-2 processing unit 52 is converted into a predetermined signal in aphysical layer and the resultant signal is transmitted to thecorresponding output line.

For example, in the case where the output line is an ATM line, in thelayer-2 protocol process (S32), the transmission packet is divided intoa plurality of data blocks (payloads) each having 48-byte length and acell header including the VPI/VCI indicated by the output L2 identifierH67 in the internal header is added to each of the data blocks, therebyconverting the transmission packet into a plurality of ATM cells. In thecase where the output line is an IP network of Ethernet, an Ethernetheader H2 including the MAC address indicated by the output L2identifier H67 in the internal header is generated by the layer-2protocol process (S32), and is added to a transmission packet.

Although the protocol process (TTL process and header convertingprocess) according to the packet forwarding type is executed by theegress routing unit 40 in the foregoing embodiment, the protocol processmay be performed by the ingress routing unit 20. In this case, forexample, a protocol processing unit for executing the TTL process andthe header converting process is disposed between the multi-layerprocessing unit 21 and the switching unit interface 22 shown in FIG. 6and a packet which has been subjected to the converting process of theMPLS header and the IP header is sent to the switching unit 11. Thefunctions of the multi-layer processing units 21 and 42 and thefunctions of the routing information retrieval unit 23 and the protocolprocessing unit shown in the flowcharts can be realized by a high-speedsystem LSI chip by the semiconductor technique such as gate array orASIC.

FIG. 13 shows a network partially including a virtual private networkVPN formed by MPLS nodes, according to a second embodiment of theinvention.

In the embodiment, the MPLS domain D2 comprises edge nodes E21, E22 andE23 and core nodes C21 and C22. The core nodes C21 and C22 and therouters R21, R22, R23 and R24 on the IP network side are connected tothe edge node E21 on which attention is focused. Among the routers, therouters R21 and R22 are connected to the input/output port of the portnumber #21 in the edge node E21 via a multiplexing apparatus (L2MUX) X21such as an ATM multiplexing apparatus. The routers R23 and R24 areconnected to the input and output ports of the port numbers #22 and #23of the edge node E21, respectively. Routers R25 and R26 of the IPnetwork are connected to the other edge nodes E22 and E23, respectively.

In FIG. 13, a host IP21 connected to the router R21 and a host IP22connected to the router R25 construct a virtual private network VPN-A. Ahost IP21 connected to the router R22 and a host IP22 connected to therouter R26 construct another virtual private network VPN-B. In thevirtual private network, private IP addresses can be used in eachnetwork (VAN) . Consequently, if VANs are different from each other, IPaddresses used may be overlapped.

It is defined here that a route of an IP packet transmitted from thehost IP21 in the VPN-A to the host IP22 in the VPN-A is RT21 and a routeof an IP packet transmitted from the host IP21 in the VPN-A to the hostIP23 connected to the router R23 is RT22. It is also defined that aroute of an IP packet transmitted from the host IP21 in the VPN-B to thehost IP22 in the VPN-B is RT23 and a route of an IP packet transmittedfrom the host IP21 in the VPN-B to the host IP24 connected to the routerR24 is RT24. It is assumed that L2 MUX X21 and the edge node E21 areconnected via an ATM line, the packet of RT21 is ATM multiplexed by aVPI/VCI value “VCIv21”, the packet of RT22 is ATM multiplexed by aVPI/VCI value “VCIv22” and packets of RT23 and RT24 are ATM multiplexedby VPI/VCI values “VCIv23”.

In the embodiment, the edge node E21 has a routing information table 160shown in FIG. 14. Each of the entries in the table 160 has items similarto those in the table 150 shown in the first embodiment and includesentries EN201 to EN204 corresponding to RT21 to RT24.

The network of FIG. 13 includes not only the routes shown in the diagrambut also, for example, MPLS edge-egress forwarding routes for forwardingpackets from the MPLS domain D2 to the external ATM lines in thedirection opposite to the routes RT21 and RT23, an MPLS edge-ingressforwarding route for forwarding a packet from the host IP24 to the hostIP22 in the VPN-B, an MPLS edge-egress forwarding route opposite to theMPLS edge-ingress forwarding route, and an MPLS core forwarding routefor switching packets in the MPLS domain D2. The routing informationtable 160 therefore includes table entries of forwarding types otherthan the entries EN201 to EN204. These entries are substantially thesame as those in the first embodiment which have been described exceptfor the contents of the input/output L2 identifier. Consequently, thedescription is omitted here.

When attention is paid to the route RT21 in the network of FIG. 13, apacket transmitted from the host IP21 in the VAN-A to the host IP22 isconverted to ATM cells each having VPI/VCI value “VCIv22” by the L2 MUXX21, and these ATM cells is supplied to the input port of the portnumber #21 in the edge node E21. Consequently, when the table search atthe first stage (step S101 in FIG. 9) is executed by using the portnumber “#21”, the input L2 identifier “VCIv22”, and the destination IPaddress “IP22” as search conditions in the routing information retrievalunit 23, the table entry EN201 is retrieved.

When attention is paid on the route RT22, a packet transmitted from thehost IP21 in the VAN-A to the router host IP23 is converted to ATM cellsby the L2 MUX X21 in a manner similar to the route RT21, and these ATMcells are supplied from the input port of the port number #21 to theedge node E21. In this case, since the VPI/VCI value of each ATM cell is“VCIv23”, the table entry EN202 is retrieved by the table search at thefirst stage by the routing information retrieval unit 23.

Packets of the routes RT23 and RT24 are converted to ATM cells havingthe same VPI/VCI value “VCIv23” by the L2MUX X21. These ATM cells aresupplied to the edge node E21 from the input port of the port number“#21”. Since the destination IPS addresses of the packets are “IP22” inthe route RT23 and “IP24” in the route RT24, the table entry EN203 isretrieved for the reception packet of the route RT23 and the table entryEN204 is retrieved for the reception packet of the route RT24 by thetable search at the first stage by the routing information retrievalunit 23.

Even in the case where the edge nodes in the MPLS domain are connectedto the VPNs and the same destination IP address indicates differentdestination apparatuses according to the VPNs, in a manner similar tothe first embodiment, by searching the routing information table byusing the combination of the input port number, input L2 identifier, anddestination IP address as searching conditions, packet forwarding to theoutput route corresponding to the reception packet and the protocolprocess according to the packet forwarding type can be executed.

In the embodiment, the case (case 1) where the value of the L2identifier (VPI/VCI) in the route RT21 and that in the route RT22 aredifferent from each other and the case (case 2) where the value of theL2 identifier in the route RT23 and that in the route RT24 are the sameeven when packets are transmitted from the same host to differentdestinations have been described. For example, when the destination IPaddress is a peculiar address which is not used in the other apparatuslike the host IP23 in the route RT22, “Don't Care Value” may be set foreach of the input port IN11 and the input L2 identifier IN12 of thecorresponding table entry. When the VPN can be identified only by theinput port number in the edge node E21, “Don't Care Value” or a hyphen(it denotes that the search condition is not satisfied) may be set inthe input L2 identifier IN12. The item can be substantially eliminatedfrom the search conditions.

In the embodiment shown in FIG. 14, to make the explanation simpler, theoutput L2 identifier OUT13 is designated by one label value. It is alsopossible to designate a plurality of labels as the output L2 identifiersand, for example, like a label stack described in the draft of the IETF,it is also possible to insert two Shim headers H4 of the MPLS. In theVPN using the MPLS, for example, there is a case such that VPNidentification information is necessary as a first label and routinginformation to a neighboring MPLS node is necessary as a second label.In such a case as well, it is sufficient to set the two label values asthe output L2 identifier OUT13 of the routing information table 160.

FIG. 15 shows an example of a network construction as a third embodimentof the invention, in which the use of an edge node in the MPLS domain ispreliminarily limited, thereby enabling the search of the routinginformation table to be simplified.

In the case of executing the MPLS core forwarding described in the firstembodiment and the MPLS edge forwarding of the VPN described in thesecond embodiment, the input port number and the input L2 identifier arenecessary as search conditions of the routing information table. Whenthe use of the edge node in the MPLS domain is limited and it isunnecessary to perform the MPLS core forwarding and the MPLS edgeforwarding of the VPN, only the destination IP address is necessary asthe search condition of the routing information table.

For example, if there is no core node C12 in the network shown in FIG.1, the network construction is as shown in FIG. 15 and the edge node E11is related to the route RT11 of an IP packet transmitted from the hostIP11 to the host IP13, the route RT12 of an IP packet which is in thedirection opposite to the route RT11, and the route RT13 of an IP packettransmitted from the host IP11 to the host IP12. In this case, only theIP forwarding function and the MPLS edge forwarding function arenecessary for the edge node E11. In the network construction shown inthe diagram, besides the above routes, the route for forwarding a packetbetween the hosts IP12 and IP13 and the route of a packet transmittedfrom the host IP12 to the host IP11 exist. Since the packet forwardingover the routes is similar to that over the routes RT11 to RT13, thedescription is omitted here.

In the case of the above network construction, a routing informationtable 170 of the edge node E11 is obtained by, as shown in FIG. 16,omitting the entry EN104 for the route RT14 from the table 150 shown inFIG. 2. All of table entries of the routing information table 170 havethe contents which are hit in the searching step S104 of the secondstage in the routing information retrieving flowchart shown in FIG. 9.Consequently, when it is preliminarily known that the networkconstruction does not need the search (S101) of the first stage like theembodiment, the following manner can be used. In order to increase theprocessing speed of the edge node, steps S101 and S102 are omitted fromthe routing information retrieving flowchart shown in FIG. 9 and therouting information retrieval unit 23 searches the routing informationtable by using only the destination IP address as a search conditionfrom the beginning.

In this case, the input port IN11 and the input L2 identifier IN12 areunnecessary in the routing information table 170. Whether those itemsare left in the table or eliminated is determined depending onprediction of a change in an environment to which the core node isapplied. In order to make the change in the network construction remainflexible, the table construction is left as it is and only the routinginformation retrieving function is made adapted to the present networkconstruction. When the retrieval of two stages becomes necessary, onlythe function of the routing information retrieval unit 23 is changed tothe state of FIG. 9.

FIG. 17 shows an example of the network construction in which POS linesand ATM lines are included in an MPLS domain D4 as a fourth embodimentof the invention.

The MPLS domain D4 comprises edge nodes E41 to E44 and a core node C41for mutually connecting the edge nodes. Hosts IP41 to IP44 are connectedto the edge nodes E41 to E44 via routers R41 to R44, respectively. Inthe embodiment, attention is paid only to the MPLS core forwardingperformed by the core node C41 and is not paid to the IP forwarding andthe MPLS edge forwarding described in the first embodiment and thepacket forwarding for the VPN described in the second embodiment. Thecore node C41 performs communications with the edge nodes E41 and E42over the POS lines and performs communications with the edge nodes E43and E44 via ATM lines. The core node C41 has, for example, a routinginformation table 180 shown in FIG. 18. In the MPLS communication usingATM lines, in a manner similar to the MPLS communications in POS orEthernet, there are two cases; a case of using a Shim header and a caseof using the VPI/VCI of the ATM header as a label in place of the Shimheader. The latter case will be described here.

In the network of FIG. 17, it is assumed that a route of an IP packettransmitted from the host IP41 to the,host IP43 is RT41, a route of anIP packet transmitted from the host IP44 to the host IP42 is RT42, aroute of an IP packet transmitted from the host IP41 to the host IP42 isRT43, and a route of an IP packet transmitted from the host IP43 to thehost IP44 is RT44.

In this case, the routing information table 180 of the core node C41includes, as shown in FIG. 18, table entries EN401 to EN404corresponding to the routes RT41 to RT44, respectively. “Label L41” and“Label L42” indicated as the input L2 identifiers IN12 denote values oflabels H41 to be added to the Shim headers of the MPLS of packets on theroutes RT41 and RT43 received from the POS lines connected to the inputport of the port number #41. “VCIv47” and “VCIv46” indicate values ofthe VPI/VCI to be added as labels to packets on the routes RT42 and RT44received through ATM lines connected to the input ports of the portnumbers #44 and #43, respectively.

When the core node C41 receives the MPLS packets of the routes RT41 toRT44, the routing information retrieval unit 23 in the input routingunit 20 corresponding to each input line searches the routinginformation table 180 by the procedure shown in FIG. 9. In theembodiment, the table entries EN401 to EN404 are retrieved in the tablesearching step S101 at the first stage in correspondence with thereception packets of the routes RT41 to RT44. By the multi-layerprocessing unit 42 in the output routing unit 40, the protocol processcorresponding to the forwarding type OUT11 of each of the entries isexecuted.

FIG. 19 shows the flowchart of the protocol process executed by themulti-layer processing unit 42 in the embodiment.

When a packet with the internal header is received via the switchinginterface 41, in accordance with the forwarding type H65 included in theinternal header, the multi-layer processing unit 42 advances one of theprocessing routines (S21); the MPLS core (POS-ATM) forwarding forforwarding a reception packet from the POS line to the ATM line (S241),MPLS core (ATM-POS) forwarding for forwarding a reception packet fromthe ATM line to the POS line (S242), MPLS core (POS-POS) forwarding forforwarding a reception packet from the POS line to the POS line (S243),and MPLS core (ATM-ATM) forwarding for forwarding a packet from the ATMline to the ATM line (S244) As obviously understood from the ATM headerformat shown in FIG. 24, the ATM header does not include TTLinformation. In each of the MPLS core forwarding of POS-ATM, ATM-POS,and POS-POS (S241 to S243), a TTL (Time To Live: similar with the hopcount) process (S281, S282 or S283) and a header converting process(S321, S322 or S323) are performed in accordance with the forwardingtype. In the MPLS core (ATM-ATM) forwarding (S244), the TTL process andthe header converting process in the layer are omitted.

For example, in the TTL process (S281) of the MPLS core (POS-ATM)forwarding (S241) performed by a node positioned at the entrance of theATM line section, the number k of MPLS nodes (MPLS hop count) throughwhich the reception packet passes in the ATM line section is subtractedfrom the value of TTL H42 extracted from the Shim header of thereception packet and the resultant value is set as the TTL H11 of the IPpacket. In the header converting process (S321), the Shim header H4 isremoved from the reception packet (MPLS packet) and the VPI/VCI valueindicated by the output L2 identifier H67 in the internal header H6 isadded as a new label to the reception packet.

By preliminarily subtracting the number of hops in the ATM line sectionin a lump by the TTL process (S281), even when each of the MPLS nodespositioning in the ATM line section performs the MPLS core (ATM-ATM)forwarding which does not include the TTL process (S244), the accurateTTL can be transmitted to the node positioning at the exit of the ATMline section.

In the TTL process (S282) of the MPLS core (ATM-POS) forwarding (S242)performed by the node positioning at the exit of the ATM line section,after subtracting by 1 from the value of the TTL H11 included in the IPheader H1 of the reception packet, the resultant is set as the TTL H42in the Shim header H4. In the header converting process (S322), the Shimheader H4 is added to the reception packet (MPLS packet). As the labelH41 of the Shim header H4, the value indicated by the output L2identifier H67 in the internal header H6 is set.

In the TTL process (S282) of the MPLS core (POS-POS) forwarding (S243)for forwarding a reception packet from a POS line to a POS line, 1 issubtracted from the value of the TTL H42 included in the Shim header H4of the reception packet. In the header converting process (S323), thevalue of the label H41 included in the Shim header H4 of the receptionpacket is changed to the value indicated by the output L2 identifier H67in the internal header H6.

When the processing routines S241 to S244 shown in FIG. 19 are appliedin place of the MPLS core forwarding process routine S24 in themulti-layer processing unit shown in FIG. 11, the edge node Ell in thefirst embodiment can be provided with the core forwarding functionbetween ATM lines and between the ATM line and the POS line as describedin the fourth embodiment. Since the table entries EN401 to EN404 forMPLS core forwarding shown in the routing information table 180 can bespecified by a combination of the input port number IN11 and the inputL2 identifier IN12 in a manner similar to the first embodiment, “Don'tCare Value” can be set in the destination IP address IN13 in each of theentries.

As obviously understood from the embodiments, the packet forwardingapparatus of the invention can be connected with a number of kinds ofcommunication lines of different communication protocols and can easilyrealize a number of kinds of protocol conversions according tocombinations of input/output lines. Basically, apparatuses of the samestructure can satisfy various network demands. The packet forwardingapparatus of the invention can therefore reduce the cost by massproduction. When the apparatus of the invention is applied, theconstruction of a network can be flexibly expanded or changed. Ittherefore facilitates a shift to a network construction of a differentcommunication protocol and the maintenance and control of a node.

According to the present invention, since the label switching typepacket forwarding apparatus has a routing information table in which thepacket forwarding type is designated in correspondence with the routinginformation peculiar to the reception packet which is known at the timeof receiving a packet, it is able to forward packets between lines ofdifferent protocols by performing the header converting process of areception packet in accordance with the packet forwarding typedesignated in the routing information table.

What is claimed is:
 1. A label switching type packet forwardingapparatus having a plurality of pairs of input and output ports, atleast a pair of input and output ports transmitting and receiving apacket in a communication protocol different from that of another pairof input and output ports, comprising: a routing information tablehaving a plurality of table entries each of which defines a forwardingtype of a reception packet, output port identification information, andoutput routing information of a specific layer in the OSI referencemodel determined by the forwarding type in correspondence with routinginformation which is found upon receipt of the packet; and a receptionpacket processing unit for searching the routing information table for atable entry corresponding to the routing information of the receptionpacket, performing a header converting process of the reception packetin accordance with a packet forwarding type and output routinginformation indicated by the retrieved specific table entry, andoutputting the reception packet to an output port indicated by theoutput port identification information in the specific table entry.
 2. Alabel switching type packet forwarding apparatus according to claim 1,wherein each of the entries in the routing information table defines aforwarding type of a reception packet, output port identificationinformation and routing information of a specific layer incorrespondence with a destination IP address of the reception packet. 3.A label switching type packet forwarding apparatus according to claim 1,wherein each of the entries in the routing information table defines aforwarding type of the reception packet, output port identificationinformation, and routing information of a specific layer incorrespondence with a combination of routing information of a pluralityof layers in the OSI reference model.
 4. A label switching type packetforwarding apparatus according to claim 1, wherein each of the entriesin the routing information table defines a forwarding type of areception packet, output port identification information, and routinginformation of a specific layer in correspondence with a combination offirst information indicative of an input port of the reception packet,second information indicative of either MPLS (Multi Protocol LabelSwitching) label of the reception packet or routing information of thelayer 2 in the OSI reference model and third information indicative of adestination IP address of the reception packet.
 5. A label switchingtype packet forwarding apparatus according to claim 4, wherein thereception packet processing unit searches the routing information tableby using at least the first and second information as search conditionson each of reception packets and, when there is no table entry whichhits the search conditions, searches the routing information table byusing the third information as a search condition.
 6. A label switchingtype packet forwarding apparatus according to claim 1, wherein therouting information table includes, as the packet forwarding types, afirst table entry in which packet forwarding between IP networks isdesignated, a second table entry in which packet forwarding from an IPnetwork to an MPLS network is designated, and a third table entry inwhich packet forwarding from an MPLS network to an IP network isdesignated.
 7. A label switching type packet forwarding apparatusaccording to claim 6, wherein the routing information of the layer 2 inthe OSI reference model to be attached to an output IP packet isdesignated as the output routing information in each of the first andthird table entries, and a label to be attached to an output MPLS packetis designated as the output routing information in the second tableentry.
 8. A label switching type packet forwarding apparatus accordingto claim 1, wherein the routing information table includes, as thepacket forwarding types, a first table entry in which packet forwardingbetween IP networks is designated, a second table entry in which packetforwarding from an IP network to an MPLS network is designated, a thirdtable entry in which packet forwarding from an MPLS network to an IPnetwork is designated, and a fourth table entry in which packetforwarding between MPLS networks is designated.
 9. A label switchingtype packet forwarding apparatus according to claim 1, wherein therouting information table includes, as the packet forwarding types, afirst table entry in which packet forwarding from an input line to whicha first protocol in the layer 2 of the OSI reference model is applied toan output line to which a second protocol in the layer 2 of the OSIreference model is applied in the MPLS network is designated, and asecond table entry in which packet forwarding from an input line towhich the second protocol is applied to an output line to which thefirst protocol is applied in the MPLS network is designated.
 10. A labelswitching type packet forwarding apparatus according to claim 9, whereinthe routing information table includes, as the packet forwarding types,a third table entry in which packet forwarding between input and outputlines to which the first protocol in the layer 2 of the OSI referencemodel is applied in the MPLS network is designated, and a fourth tableentry in which packet forwarding between input and output lines to whichthe second protocol in the layer 2 of the OSI reference model is appliedin the MPLS network is designated.
 11. A label switching type packetforwarding apparatus for transmitting and receiving packets in aplurality of kinds of communication protocols, comprising: a pluralityof groups of input line interface units each of which is connected to atleast one input line and executes at least a protocol process of thelayer 1 in the OSI reference model on a packet received from the inputline; a plurality of groups of output line interface units each of whichis connected to at least one output line and executes at least aprotocol process of the layer 1 in the OSI reference model on a packetto be outputted to the output line; a plurality of ingress routing unitseach connected to a group of input line interface units, for adding areception packet from each of the input line interface units withinternal header information and outputting the resultant receptionpacket; a plurality of egress routing units each connected to a group ofoutput line interface units; and a switching unit for forwarding apacket outputted from each of the ingress routing units to one of theplurality of egress routing units, wherein each of the ingress routingunits has a routing information table including a plurality of tableentries each defines, in correspondence with routing information whichis found upon receipt of the packet, a forwarding type of the receptionpacket, output port identification information, and routing informationof a specific layer in the OSI reference model determined by theforwarding type, retrieves a table entry corresponding to the receptionpacket from the routing information table on the basis of routinginformation attached to the reception packet received from the inputline interface unit, and sets the forwarding type of the receptionpacket, the output port identification information and the routinginformation of the specific layer indicated by the retrieved table entryas internal header information of the received packet, and each of theegress routing units performs a header converting process on thereception packet in accordance with the packet forwarding type and therouting information of the specific layer set as the internal headerinformation in the packet received from the switching unit and outputseach of the reception packets to an output line interface unit specifiedby the output port identification information set as the internal headerinformation.
 12. A label switching type packet forwarding apparatusaccording to claim 11, wherein each of the entries in the routinginformation table defines a forwarding type of a reception packet,output port identification information and routing information of aspecific layer in correspondence with a destination IP address of thereception packet.
 13. A label switching type packet forwarding apparatusaccording to claim 11, wherein each of the entries in the routinginformation table defines a forwarding type of the reception packet,output port identification information, and routing information of aspecific layer in correspondence with a combination of routinginformation of a plurality of layers in the OSI reference model.
 14. Alabel switching type packet forwarding apparatus according to claim 11,wherein each of the entries in the routing information table defines aforwarding type of a reception packet, output port identificationinformation, and routing information of a specific layer incorrespondence with a combination of first information indicative of aninput port of the reception packet, second information indicative ofeither MPLS (Multi Protocol Label Switching) label of the receptionpacket or routing information of the layer 2 in the OSI reference modeland third information indicative of a destination IP address of thereception packet.
 15. A label switching type packet forwarding apparatusaccording to claim 14, wherein the reception packet processing unitsearches the routing information table by using at least the first andsecond information as search conditions on each of reception packetsand, when there is no table entry which hits the search conditions,searches the routing information table by using the third information asa search condition.
 16. A label switching type packet forwardingapparatus according to claim 11, wherein the routing information tableincludes, as the packet forwarding types, a first table entry in whichpacket forwarding between IP networks is designated, a second tableentry in which packet forwarding from an IP network to an MPLS networkis designated, and a third table entry in which packet forwarding froman MPLS network to an IP network is designated.
 17. A label switchingtype packet forwarding apparatus according to claim 16, wherein therouting information of the layer 2 in the OSI reference model to beattached to an output IP packet is designated as the output routinginformation in each of the first and third table entries, and a label tobe attached to an output MPLS packet is designated as the output routinginformation in the second table entry.
 18. A label switching type packetforwarding apparatus according to claim 11, wherein the routinginformation table includes, as the packet forwarding types, a firsttable entry in which packet forwarding between IP networks isdesignated, a second table entry in which packet forwarding from an IPnetwork to an MPLS network is designated, a third table entry in whichpacket forwarding from an MPLS network to an IP network is designated,and a fourth table entry in which packet forwarding between MPLSnetworks is designated.
 19. A label switching type packet forwardingapparatus according to claim 11, wherein the routing information tableincludes, as the packet forwarding types, a first table entry in whichpacket forwarding from an input line to which a first protocol in thelayer 2 of the OSI reference model is applied to an output line to whicha second protocol in the layer 2 of the OSI reference model is appliedin the MPLS network is designated, and a second table entry in whichpacket forwarding from an input line to which the second protocol isapplied to an output line to which the first protocol is applied in theMPLS network is designated.
 20. A label switching type packet forwardingapparatus according to claim 19, wherein the routing information tableincludes, as the packet forwarding types, a third table entry in whichpacket forwarding between input and output lines to which the firstprotocol in the layer 2 of the OSI reference model is applied in theMPLS network is designated, and a fourth table entry in which packetforwarding between input and output lines to which the second protocolin the layer 2 of the OSI reference model is applied in the MPLS networkis designated.